import request, { singleRequest } from '@/utils/request'
import { cloneDeep } from 'lodash'

// 发票列表
export const invoiceList = async (data = {}) => {
    const res = await singleRequest({
        url: '/invoice/list',
        method: 'post',
        data,
    })
    return res
}

// 发票详情
export const invoiceDetail = async (data = {}) => {
    data = cloneDeep(data)
    const res = await request({
        url: '/invoice/detail',
        method: 'get',
        params: data,
    })
    return res
}

// 发票审核
export const invoiceAudit = async (data = {}) => {
    data = cloneDeep(data)
    const res = await request({
        url: '/invoice/check',
        method: 'post',
        data,
    })
    return res
}
